/*
 * @Author: zhishiqu
 * @Description: 
 * @Date: 2023-02-15 16:36:14
 * @LastEditTime: 2023-02-22 14:13:24
 * @FilePath: \WebFlood\lib\flipFlopFBO.js
 */
FlipFlopFBO = function (options) {
	this.fbo1 = new GLOW.FBO(options);
	this.fbo2 = new GLOW.FBO(_.omit(options, "data")); //忽略data键
	this.texture = this.fbo1;
	this.target = this.fbo2;
};

FlipFlopFBO.prototype.flip = function () {
	var oldTexture = this.texture;
	this.texture = this.target;
	this.target = oldTexture;
};